package edu.neusoft.springhtmldemo.service;

import edu.neusoft.springhtmldemo.domain.OperatingLog;
import edu.neusoft.springhtmldemo.mapper.OperatingLogMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OperatingLogService {
    @Autowired
    private OperatingLogMapper mapper;

    public List<OperatingLog> showAll() {
        return mapper.selectAll();
    }

    public List<OperatingLog> selectOperatingLog(String oid, String userName, String operateDetail, String alarmBeginTime) {
        return mapper.selectOperatingLog(oid,userName,operateDetail,alarmBeginTime);
    }
}
